package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformmapping.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 跨境电商数据映射配置分页 Request VO")
@Data
public class PlatformMappingPageReqVO extends PageParam {

    @Schema(description = "平台编号", example = "18143")
    private Long platformId;

    @Schema(description = "店铺编号（为空表示平台级映射）", example = "7290")
    private Long storeId;

    @Schema(description = "映射类型", example = "1")
    private String mappingType;

    @Schema(description = "本地字段")
    private String localField;

    @Schema(description = "平台字段")
    private String platformField;

    @Schema(description = "本地值")
    private String localValue;

    @Schema(description = "平台值")
    private String platformValue;

    @Schema(description = "数据类型", example = "2")
    private String dataType;

    @Schema(description = "转换规则JSON")
    private String transformRule;

    @Schema(description = "是否必填")
    private Boolean isRequired;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "验证规则")
    private String validationRule;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态（0正常 1停用）", example = "2")
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}